//
//  HomeBtn.m
//  HMMarket
//
//  Created by 孙鹏飞 on 2017/5/9.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "HomeBtn.h"

@implementation HomeBtn

+ (instancetype)homeBtn
{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([HomeBtn class]) owner:nil options:nil] lastObject];
}

- (IBAction)SpecialDishBtn:(id)sender {
    if ([_delegate respondsToSelector:@selector(HomeBtn:didClickedBtnAtIndex:)]) {
        [_delegate HomeBtn:self didClickedBtnAtIndex:0];
    }
}

- (IBAction)cartBtn:(id)sender {
    if ([_delegate respondsToSelector:@selector(HomeBtn:didClickedBtnAtIndex:)]) {
        [_delegate HomeBtn:self didClickedBtnAtIndex:1];
    }
}

- (IBAction)orderBtn:(id)sender {
    if ([_delegate respondsToSelector:@selector(HomeBtn:didClickedBtnAtIndex:)]) {
        [_delegate HomeBtn:self didClickedBtnAtIndex:2];
    }
}

- (IBAction)oftenBuyBtn:(id)sender {
    if ([_delegate respondsToSelector:@selector(HomeBtn:didClickedBtnAtIndex:)]) {
        [_delegate HomeBtn:self didClickedBtnAtIndex:3];
    }
}


@end
